<!-- 生产订单主表订单列表 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-cache/no-store" />
<!--[if IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui/css/icheck.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<style>
   .input-text{ 
    width:140px; 
   } 
</style>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>工程参数设置</title>
</head>
<body>
	<div class="panel panel-default" style="width:49%;float:left">
		<div class="panel-header">工程参数设置</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">长度打边：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" name="lengthDb" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">宽度打边：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" name="widthDb" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">长度可减少量：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" name="lengthCut" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">宽度可减少量：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" email=true name="widthCut" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">长度余量：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" email=true name="picLengthRate" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">宽度余量：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" email=true name="picWidthRate" class="input-text" autocomplete="off" placeholder="">
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="row cl">
				<div class="formControls col-xs-8 col-sm-9">
					<input class="btn btn-primary radius" type="submit" value="提交" id="submit">				
				</div>
			</div>
		</div>
	</div>
	<div style="float:left;width:49%">
			<img src="https://upload.shinehao.com.cn/201809261402431.png" style="width:100%;">
	</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810145355jquery.min1.9.1.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810150731H-ui.min3.0.2.js"></script> 
<script type="text/javascript" src="static/h-ui/js/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180813175723jquery.dataTables1.10.0.js"></script>
<script type="text/javascript" src="lib/datatables/1.10.0/dataTables.fixedColumns.min.js"></script>
<scirpt src="html/createOrder/jquery/jquery.form.min.js"></scirpt>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810172341echarts.common.min3.4.0.js"></script>
<script type="text/javascript" src="myJs/echartUtil.js"></script>
<script type="text/javascript" src="myJs/util.js"></script>
<script>
$(function(){
	$("#submit").unbind("click");
	$("#submit").bind("click",function(){
		
		$.ajax({
	        type: 'POST',
	        url: "/weixin/project/saveInfo",
	        data: {
	        	"widthCut":$("[name='widthCut']").val().trim().length<1?0:$("[name='widthCut']").val(),
	        	"lengthCut":$("[name='lengthCut']").val().trim().length<1?0:$("[name='lengthCut']").val(),
	        	"widthDb":$("[name='widthDb']").val().trim().length<1?0:$("[name='widthDb']").val(),
				"lengthDb":$("[name='lengthDb']").val().trim().length<1?0:$("[name='lengthDb']").val(),
				"picLengthRate":$("[name='picLengthRate']").val().trim().length<1?0:$("[name='picLengthRate']").val(),
				"picWidthRate":$("[name='picWidthRate']").val().trim().length<1?0:$("[name='picWidthRate']").val()
	        },
	        success: function(data){
	        	if(data.result){
	        		alert("数据保存成功");
	        	}else{
	        		alert("数据保存失败");
	        	}
	        },
	        dataType: "json"
	      });
	});
	$.ajax({
        type: 'POST',
        url: "/weixin/project/getInfo",
        data: {},
        success: function(data){
        	if(data.data){
        		$("[name='widthCut']").val(data.data.widthCut);
    			$("[name='lengthCut']").val(data.data.lengthCut);
    			$("[name='widthDb']").val(data.data.widthDb);
    			$("[name='lengthDb']").val(data.data.lengthDb);
    			$("[name='picLengthRate']").val(data.data.picLengthRate);
    			$("[name='picWidthRate']").val(data.data.picWidthRate);
        	}
        },
        dataType: "json"
      });
})
</script>
</body>
</html>